package com.ruoyi.standingbook.extermination.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.annotation.Translation;
import com.ruoyi.common.constant.TransConstant;
import com.ruoyi.common.tools.convert.ExcelOssDownloadConver;
import lombok.Data;

import java.util.Date;



/**
 * 四害消杀视图对象 tz_extermination
 *
 * @author cc
 * @date 2023-04-30
 */
@Data
@ExcelIgnoreUnannotated
public class ExterminationVo {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    //@ExcelProperty(value = "id")
    private Long id;

    /**
     * 项目名称
     */
    @ExcelProperty(value = "项目名称")
    private String itemName;

    /**
     * 日期
     */
    @ExcelProperty(value = "日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date date;

    /**
     * 消杀类别
     */
    @ExcelProperty(value = "消杀类别")
    @ExcelDictFormat(dictType = "extermination_category")
    private String exterminationCategory;

    /**
     * 场所
     */
    @ExcelProperty(value = "场所")
    private String location;

    /**
     * 消杀要求
     */
    @ExcelProperty(value = "消杀要求")
    private String exterminationAsk;

    /**
     * 服务种类
     */
//    @ExcelProperty(value = "服务种类")
    private Long serviceType;

    private String serviceTypeName;

    /**
     * 消杀频率(次)
     */
    @ExcelProperty(value = "消杀频率(次)")
    private Long frequency;

    /**
     * 本月累计消杀频率（次）
     */
    //@ExcelProperty(value = "本月累计消杀频率（次）")
    private Long thisMonthTotalFrequency;

    /**
     * 消杀面积（㎡）
     */
    @ExcelProperty(value = "消杀面积（㎡）")
    private Double area;

    /**
     * 本月累计消杀面积（㎡）
     */
    //@ExcelProperty(value = "本月累计消杀面积（㎡）/体积（㎡）")
    private Double thisMonthTotalArea;

    /**
     * 用药量（g）
     */
    @ExcelProperty(value = "用药量（g）")
    private Double dosage;

    /**
     * 本月累计用药量（g）
     */
    //@ExcelProperty(value = "本月累计用药量（g）")
    private Double thisMonthTotalDosage;

    /**
     * 消杀人员id
     */
    private Long exterminationUserId;

    /**
     * 消杀人员
     */
    @ExcelProperty(value = "消杀人员")
    private String exterminationUser;

    /**
     * 手机号码
     */
    @ExcelProperty(value = "手机号码")
    private String phoneNumber;

    /**
     * 使用器械
     */
    @ExcelProperty(value = "使用器械")
    private String usingEquipment;

    /**
     * 消杀方法
     */
    @ExcelProperty(value = "消杀方法")
    private String exterminationMethod;

    /**
     * 作业内容
     */
    @ExcelProperty(value = "作业内容")
    private String assignmentContent;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态")
    @ExcelDictFormat(dictType = "extermination_category")
    private String status;

    /**
     * 药品图片
     */
    @ExcelProperty(value = "药品图片", converter = ExcelOssDownloadConver.class)
    private String pic1;

    @Translation(type = TransConstant.OSS_ID_TO_URL , mapper = "pic1")
    private String pic1Url;

    /**
     * 药品图片2
     */
    //@ExcelProperty(value = "药品图片2", converter = ExcelOssDownloadConver.class)
    private String pic2;

    @Translation(type = TransConstant.OSS_ID_TO_URL , mapper = "pic2")
    private String pic2Url;

    /**
     * 现场完成前图片
     */
    @ExcelProperty(value = "现场完成前图片", converter = ExcelOssDownloadConver.class)
    private String pic3;

    @Translation(type = TransConstant.OSS_ID_TO_URL , mapper = "pic3")
    private String pic3Url;

    /**
     * 现场完成前图片2
     */
    //@ExcelProperty(value = "现场完成前图片2", converter = ExcelOssDownloadConver.class)
    private String pic4;

    @Translation(type = TransConstant.OSS_ID_TO_URL , mapper = "pic4")
    private String pic4Url;

    /**
     * 现场过程图片
     */
    @ExcelProperty(value = "现场过程图片", converter = ExcelOssDownloadConver.class)
    private String pic5;

    @Translation(type = TransConstant.OSS_ID_TO_URL , mapper = "pic5")
    private String pic5Url;

    /**
     * 现场过程图片2
     */
    //@ExcelProperty(value = "现场过程图片2", converter = ExcelOssDownloadConver.class)
    private String pic6;

    @Translation(type = TransConstant.OSS_ID_TO_URL , mapper = "pic6")
    private String pic6Url;

    /**
     * 现场完成后图片
     */
    @ExcelProperty(value = "现场完成后图片", converter = ExcelOssDownloadConver.class)
    private String pic7;

    @Translation(type = TransConstant.OSS_ID_TO_URL , mapper = "pic7")
    private String pic7Url;

    /**
     * 现场完成后图片2
     */
    //@ExcelProperty(value = "现场完成后图片2", converter = ExcelOssDownloadConver.class)
    private String pic8;

    @Translation(type = TransConstant.OSS_ID_TO_URL , mapper = "pic8")
    private String pic8Url;

    /**
     * 备注
     */
    //@ExcelProperty(value = "备注")
    private String remark;

    /**
     * 创建日期
     */
    //@ExcelProperty(value = "创建日期")
    private Date createTime;

    /**
     * 创建人
     */
    //@ExcelProperty(value = "创建人")
    private String createBy;


}
